package com.demo.dao.impl;

import com.demo.dao.StudentDao;
import com.demo.entity.Student;

import java.util.List;

/**
 * @author wzm
 * @create 2023-06-29 9:16
 */
public class StudentDaoImpl extends BaseDao implements StudentDao {
    @Override
    public int insertStu(Student student) {
        return 0;
    }

    @Override
    public int deleteStu(Student student) {
        return 0;
    }

    @Override
    public int updateStu(Student student) {
        return 0;
    }

    @Override
    public List<Student> selectAll() {
        return null;
    }

    @Override
    public Student selectById(Student student) {
        return null;
    }

    @Override
    public List<Student> selectByLike(Student student) {
        String sql = "select * from student where username like ?";
        return selectForList(Student.class,sql,"%"+student.getUsername()+"%");
    }
}
